package activity
import history.*

class Billboard {
    String title
    String content
    Date dateStart//上架日期
    Date dateEnd//下架日期
    History history
    
    static constraints = {
        title(blank:false)
        content(blank:false,size:0..2000)
        dateStart(blank:false)
        dateEnd(blank:false)
        history(nullable:true)
    }
    
    String toString() {
        title
    }
}
